Skip to content

feat(vm): implement EIP-7823#6551

Closed
ouy95917 wants to merge 5 commits intotronprotocol:developfrom
ouy95917:implement-eip-7823
Closed

feat(vm): implement EIP-7823#6551
ouy95917 wants to merge 5 commits intotronprotocol:developfrom
ouy95917:implement-eip-7823

Conversation

@ouy95917
Copy link
Copy Markdown

This PR aims to introduce EIP-7823 into TVM, and for this purpose, the allowTvmOsaka proposal has been added.

return Optional.ofNullable(getUnchecked(ALLOW_TVM_OSAKA))
.map(BytesCapsule::getData)
.map(ByteArray::toLong)
.orElse(0L);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ability to read from the configuration file needs to be retained for testing purposes.

yanghang8612 and others added 2 commits March 30, 2026 16:08
# Conflicts:
#	common/src/main/java/org/tron/core/Constant.java
#	framework/src/main/java/org/tron/core/config/args/Args.java
1. Change ALLOW_TVM_OSAKA proposal id from 95 to 96
2. DynamicPropertiesStore.getAllowTvmOsaka() defaults to CommonParameter
3. ModExp returns Pair.of(false, EMPTY_BYTE_ARRAY) instead of throwing
   PrecompiledContractException when inputs exceed 1024 bytes, matching
   geth/besu behavior where only the CALL fails (not the whole tx)
4. Update test to verify return value instead of catching exception
@ouy95917 ouy95917 changed the title Implement EIP-7823 feat(vm): implement EIP-7823 Mar 30, 2026
@ouy95917 ouy95917 closed this Mar 30, 2026
@ouy95917 ouy95917 deleted the implement-eip-7823 branch March 30, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants